﻿using ETask.Api.Dtos;
using ETask.Api.Models;

namespace ETask.Api.Services
{
    public interface IDeptService:IGenericService<Dept,DeptDto,CreateDeptDto,UpdateDeptDto>
    {
        Task<ApiResponse> AddDept(CreateDeptDto deptDto);

        Task<ApiResponse> UpdateDept(UpdateDeptDto deptDto);

        Task<ApiResponse> GetTree();

        Task<ApiResponse> GetList(DeptListParams listParams);

        Task<ApiResponse> DelById(int id);

    }
}
